<!DOCTYPE html>
<html>
<#include "include/common-head.ftl"/>
<body>
<header class="orderTop">
    <section class="orderTop-img">
        <img src="/images/orderImg.jpg"/>
    </section>
    <section class="orderTel">${sessionUser.phone?substring(0,4)}***${sessionUser.phone?substring(8,11)}</section>
</header>
<nav class="orderNav clearfix">
    <ul class="ordernav-list">
        <li><a <#if "wait" == status!>class="ordernav-xz"</#if> href="/product/order?status=wait" id="jx">进行中</a></li>
        <li><a <#if "yes" == status!>class="ordernav-xz"</#if> href="/product/order?status=yes" id="wc">已完成</a></li>
        <li><a <#if "no" == status!>class="ordernav-xz"</#if> href="/product/order?status=no" id="zj">已终止</a></li>
    </ul>
</nav>
<#if ordersList?? && ordersList?size gt 0>
<section class="orderlist" id="orderc1">
    <#list ordersList as item>
        <section class="orderlineBox">
            <section class="orderline-c">
                <p class="order-title">
                    <span>${item.addtime?string('yyyy-MM-dd')}</span>
                    <i><img src="/images/${item.productid?switch(1,"xinIco",2,"fangIco",3,"cheIco")}.jpg"/></i>
                </p>
                <section class="orderInfo">
                    <section class="orderInfo-m fl">
                        <label class="fl">贷款金额</label>
                        <p>
                            <i>${item.account?string("#0")}</i>
                            <span>万元</span>
                        </p>
                    </section>
                    <section class="orderInfo-d fr">
                        <label class="fl">贷款期限</label>
                        <p>
                            <i>${item.term}</i>
                            <span>月</span>
                        </p>
                    </section>
                </section>
            </section>
        </section>
    </#list>
</section>
<#else>
<section>
    <section class="noinfo">
        <img src="/images/noinfoIco.jpg"/>
    </section>
</section>
</#if>

<footer class="orderFoot">
    <section class="orderFoot-c">
        <ul>
            <li class="orderHomeIco2" onclick="location.href = '/index'"></li>
            <li class="ordernavIco"></li>
        </ul>
    </section>
</footer>
</body>
</html>
